Makefile-libostree.am: Work around clang issues with g-ir-scanner
authorRobert Fairley <rfairley@redhat.com>
Wed, 19 Jun 2019 17:32:00 +0000 (13:32 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 21 Jun 2019 13:17:10 +0000 (13:17 +0000)
Work around an issue with clang-7 in Fedora 29 where the
`-fstack-clash-protection` flag is not recognized. Force
the compiler used by `g-ir-scanner` to `gcc`, so that the flag
is recognized.

Related: https://github.com/projectatomic/rpm-ostree/pull/1787#issuecomment-473971585

Closes: #1871
Approved by: jlebon

Makefile-libostree.am

index 0ea54cf871ba8619a6e86a38b76702e0c8686d6b..1f1e0bc7aff051b37bd5df01db84effae948a772 100644 (file)
@@ -251,6 +251,10 @@ libostree_1_la_CFLAGS += $(OT_DEP_SELINUX_CFLAGS)
 libostree_1_la_LIBADD += $(OT_DEP_SELINUX_LIBS)
 endif
 
+# XXX: work around clang being passed -fstack-clash-protection which it doesn't understand
+# See: https://bugzilla.redhat.com/show_bug.cgi?id=1672012
+INTROSPECTION_SCANNER_ENV = CC=gcc
+
 if BUILDOPT_INTROSPECTION
 OSTree-1.0.gir: libostree-1.la Makefile
 OSTree_1_0_gir_EXPORT_PACKAGES = ostree-1